{extend name="index/base" /}
{block name="menu"}

<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        消息列表
    </div>
    <ol class="am-breadcrumb">
        <li><a href="{:url('admin/index/index')}" class="am-icon-home">首页</a></li>
        <li class="am-active">消息管理</li>
        <li class="am-active">消息列表</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 消息列表
            </div>
            <div class="tpl-portlet-input tpl-fz-ml">
                <div class="portlet-input input-small input-inline">
                    <div class="input-icon right">

                    </div>
                </div>
            </div>


        </div>
        <div class="tpl-block">
            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-6">
                    <div class="am-btn-toolbar">
                        <!--<div class="am-btn-group am-btn-group-xs">-->
                            <!--<a type="button" class="am-btn am-btn-default am-btn-success" href="{:url('index/node/create')}"><span class="am-icon-plus"></span> 新增</a>-->

                        <!--</div>-->
                    </div>
                </div>
            </div>

            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-striped am-table-hover table-main am-table-centered am-table-compact">
                            <thead>
                            <tr>
                                <th class="table-check"><input type="checkbox" class="tpl-table-fz-check"></th>
                                <th class="table-id">ID</th>
                                <th class="table-title">消息标题</th>
                                <!--<th class="table-type">消息内容</th>-->
                                <!--<th class="table-type">aname</th>-->
                                <!--<th class="table-date am-hide-sm-only">状态</th>-->
                                <!--<th class="table-set">操作</th>-->
                            </tr>
                            </thead>
                            <tbody>
                            {volist name='list' id='alist'}
                            <tr>
                                <td><input type="checkbox"></td>
                                <td>{$alist.id}</td>
                                <td>{$alist.title}</td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        <div class="am-cf">
                            <div class="am-fr" >
                                <style>
                                    .pagination li{
                                        float:left;
                                        margin-right:20px;
                                    }
                                </style>
                            </div>
                        </div>

                        <hr>
                    </form>
                </div>

                <div class="am-cf">
                    <div class="am-fr" >
                        <style>
                            .pagination li{
                                float:left;
                                margin-right:20px;
                            }
                        </style>
                        {$list->render()}
                    </div>
                </div>
            </div>
        </div>
        <div class="tpl-alert"></div>

    </div>


    <script>
        $(function () {
            $('.btn-del').click(function(){
                var id = $(this).attr('iddata');
                var obj = $(this).parents('tr');
                if(confirm('你确定要删除该节点吗')){
                    delajax(id,obj,'node');
                }
            })
        })
    </script>



</div>
{/block}



